home *** CD-ROM | disk | FTP | other *** search
- ; installation script for AT Constuction Set
-
- ; check things out
-
- (set def-dest @default-dest)
- (set def-dest-maybe (tackon @default-dest "A-Train Drawer"))
-
- (if (exists def-dest-maybe) (set def-dest def-dest-maybe))
-
- ; tell user that the game needs to installed where A-Train was
-
- (set old-user @user-level)
- (user 2)
-
- (message
- (cat "\nYour copy of AT Constuction Set needs to be installed in the same "
- "drawer that A-Train was installed. You will be asked to locate the "
- "A-Train Drawer so the installation can continue."
- )
- )
-
- ; ask user where to put the drawer
-
- (set ok 0)
-
- (while (not ok)
- (
- (set robopath
- (askdir
- (prompt "Please indicate where the A-Train drawer is located.")
- (help @askdir-help)
- (default def-dest)
- )
- )
-
- (if (exists (tackon robopath "Data"))
- (set ok 1)
- (message "A-Train is not installed in that Drawer!")
- )
- )
- )
-
- (user old-user)
-
- (complete 5)
-
- (set @default-dest robopath)
-
- ; copy ATCS, Examples & new Data to the drawer
-
- (message "\nThe game files will now be copied from floppy disk to the A-Train Drawer.")
-
- (askdisk
- (prompt "Please insert the disk labeled \"A-Train Construction Set Disk 1\".")
- (help @askdisk-help)
- (dest "ATCS Disk 1")
- )
-
- (working "Copying program files.")
-
- (complete 10)
-
- (copyfiles
- (source "ATCS Disk 1:AT Construction Set")
- (dest robopath)
- (infos)
- )
-
- (complete 30)
-
- (copyfiles
- (source "ATCS Disk 1:AT Construction Set HiRes")
- (dest robopath)
- (infos)
- )
-
- (working "Installing Example Games.")
-
- (complete 40)
-
- (run
- (cat "\"ATCS Disk 1:c/atcs_expand\" \"ATCS Disk 1:examples.res\" \""
- (tackon robopath "Example") "\" h"
- )
- )
-
- (complete 50)
-
- (askdisk
- (prompt "Please insert the disk labeled \"A-Train Construction Set Disk 2\".")
- (help @askdisk-help)
- (dest "ATCS Disk 2")
- )
-
- (working "Copying data files.")
-
- (copyfiles
- (source "ATCS Disk 2:Data")
- (dest (tackon robopath "Data"))
- (pattern "#?.snd")
- )
-
- (complete 80)
-
- (copyfiles
- (source "ATCS Disk 2:Data/atcs.res")
- (dest (tackon robopath "Data"))
- )
-
- (complete 95)
-
- (if (exists "ATCS Disk 2:Data/atcs.catalog")
- (copyfiles
- (source "ATCS Disk 2:Data/atcs.catalog")
- (dest (tackon robopath "Data"))
- )
- )
-
- (complete 100)
-